package com.avic.map.common.model;

import lombok.Data;

import java.io.Serializable;

@Data
public class ShipStaticInfoModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标示
     */
    private long mmsi;

    /**
     * 名称
     */
    private String shipName;

    /**
     * 数据时间
     */
    private long dateTime;

    public ShipStaticInfoModel() {
    }

    public ShipStaticInfoModel(long mmsi, String shipName) {
        this.mmsi = mmsi;
        this.shipName = shipName;
    }

    public ShipStaticInfoModel(ShipStaticModel shipStaticModel) {
        this.mmsi = shipStaticModel.getMmsi();
        this.shipName = shipStaticModel.getShipName();
        this.dateTime = shipStaticModel.getDateTime();
    }

    public ShipStaticInfoModel(ShipStatic24Model shipStaticModel) {
        this.mmsi = shipStaticModel.getMmsi();
        this.shipName = shipStaticModel.getShipName();
        this.dateTime = shipStaticModel.getDateTime();
    }
}
